home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 4 / FM Towns Free Software Collection 4 - Disc 1.iso / gear / repeat / volume.c < prev    next >
Text File  |  1991-10-18  |  611b  |  33 lines

  1. extern    int        SND_elevol_init();
  2. extern    int        SND_elevol_read();
  3. extern    int        SND_elevol_set();
  4. extern    int        SND_elevol_mute();
  5. extern    int        SND_elevol_all_mute();
  6.  
  7. void    volume(mode,l_sw,l_vol,r_vol)
  8. int    mode,l_sw,*l_vol,*r_vol;
  9. {
  10. int    j1;
  11.     switch    (mode)    {
  12.         case    0:
  13.                 break;
  14.         case    1:
  15.                 j1=SND_elevol_init();
  16.                 break;
  17.         case    2:
  18.                 j1=SND_elevol_read(l_sw,*l_vol,*r_vol);
  19.                 break;
  20.         case    3:
  21.                 j1=SND_elevol_set(l_sw,*l_vol,*r_vol);
  22.                 break;
  23.         case    4:
  24.                 j1=SND_elevol_mute(l_sw);
  25.                 break;
  26.         default:
  27.                 j1=SND_elevol_all_mute(l_sw);
  28.                 break;
  29.     }
  30. }
  31.  
  32. /*    program end    */
  33.